<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>KOZA - Панель управленя</title>

    <link href="<?= $this->config->site_url() ?>css/bootstrap.css" rel="stylesheet">
    <link href="<?= $this->config->site_url() ?>css/sb-admin.css" rel="stylesheet">
    <link href="<?= $this->config->site_url() ?>css/page.css" rel="stylesheet">
    <link href="<?= $this->config->site_url() ?>js/jquery-ui-1.10.3.custom/css/ui-lightness/jquery-ui-1.10.3.custom.min.css" rel="stylesheet">
    <link rel="stylesheet" href="<?= $this->config->site_url() ?>font-awesome/css/font-awesome.css">
    <script type="text/javascript" src="/js/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="/js/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script type="text/javascript" src="/js/jquery.json-2.4.min.js"></script>

  </head>

  <body>

    <div id="wrapper">

      <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="admin.html">KOZA Project</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-ex1-collapse">
          <ul class="nav navbar-nav side-nav">
            <li <? if ($activePage == "index"): ?>class="active"<? endif; ?> >
                <a href="<?= $this->config->site_url('admin') ?>"><i class="fa fa-dashboard"></i> Главная</a>
            </li>

            <? if($user->access_users == "Y"): ?>
                <li <? if ($activePage == "users"): ?>class="active"<? endif; ?>>
                    <a href="<?= $this->config->site_url('admin/users') ?>"><i class="fa fa-bar-user-o"></i> Пользователи</a>
                </li>
            <? endif; ?>

            <? if($user->access_groups == "Y"): ?>
                <li <? if ($activePage == "groups"): ?>class="active"<? endif; ?>>
                  <a href="<?= $this->config->site_url('admin/groups') ?>"><i class="fa fa-group"></i> Группы</a></li>
            <? endif; ?>

            <li><a href="#"><i class="fa fa-bar-chart-o"></i> Статистика</a></li>
            <!--
            <li>
                <a href="tables.html"><i class="fa fa-table"></i> Tables</a>
            </li>
            <li>
                <a href="forms.html"><i class="fa fa-edit"></i> Forms</a>
            </li>
            <li>
                <a href="typography.html"><i class="fa fa-font"></i> Typography</a>
            </li>
            <li>
                <a href="bootstrap-elements.html"><i class="fa fa-desktop"></i> Bootstrap Elements</a>
            </li>
            <li>
                <a href="bootstrap-grid.html"><i class="fa fa-wrench"></i> Bootstrap Grid</a>
            </li>
            <li>
                <a href="blank-page.html"><i class="fa fa-file"></i> Blank Page</a>
            </li>

            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-caret-square-o-down"></i> Dropdown <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="#">Dropdown Item</a></li>
                <li><a href="#">Another Item</a></li>
                <li><a href="#">Third Item</a></li>
                <li><a href="#">Last Item</a></li>
              </ul>
            </li>
            -->
             
          </ul>
          <ul class="nav navbar-nav navbar-right navbar-user">
            <li class="dropdown messages-dropdown">
              <a href="#" class="exit" data-toggle="dropdown"><i class="fa fa-power-off"></i> Выход</a>
          </ul>
        </div><!-- /.navbar-collapse -->
      </nav>
      <div id="page-wrapper">
        <div class="row">
          <div class="col-lg-12">
            <ol class="breadcrumb">
              <li><a href="admin.html"><i class="fa fa-dashboard"></i> Главная</a></li>
                <? if($activePage == "users"): ?>
                    <li class="active"><i class="fa fa-bar-user-o"></i> Пользователи</li>
                <? endif; ?>
                <? if($activePage == "groups"): ?>
                    <li class="active"><i class="fa fa-bar-group-o"></i> Группы</li>
                <? endif; ?>
            </ol>
          </div>
         
        </div><!-- /.row -->


        <?= $content ?>

      </div><!-- /#page-wrapper -->

    </div><!-- /#wrapper -->

    <!-- JavaScript -->
    <script src="js/jquery-1.10.2.js"></script>
    <script src="<?= $this->config->site_url() ?>js/bootstrap.js"></script>

    <script type="text/javascript">
        $(function(){
            $(".exit").click(function(){
                self.location = "<?= $this->config->site_url("actions/logout") ?>";
                return false;
            });
            
        });
    </script>

  </body>
</html>